<template>
  <div>
    <tabs :value="value" @getIndex="currentIndex">
      <tab label="话题" index="1">
        话题
      </tab>
      <tab label="产品" index="2">
        产品
      </tab>
      <tab label="用户" index="3">
        用户
      </tab>
    </tabs>
  </div>
</template>
<script>

export default {
  name: "SearchTab",
  data() {
    return {
      value: 1
    }
  },
  methods: {
    currentIndex(index) {
      this.value = index;
    }
  },
  components: {

  }
}
</script>
<style scoped>
</style>



